package com.lantosec.hmrp.modules.form.service;

import com.baomidou.mybatisplus.extension.service.IService;
import com.lantosec.hmrp.core.kit.Result;
import com.lantosec.hmrp.modules.form.entity.FormLayout;
import com.lantosec.hmrp.modules.form.vo.FormLayoutVO;

import java.util.List;

/**
 * <p>
 * 自定义表单布局 服务类
 * </p>
 *
 * @author AutoCode
 * @since 2020-04-15
 */
public interface IFormLayoutService extends IService<FormLayout> {

    /**
     * 根据表名查询表单布局集合
     *
     * @param tableId
     * @return
     */
    List<FormLayoutVO> queryByTableId(String tableId);

    /**
     * 保存
     * @param entity
     * @return
     */
    Result<String> saveLayout(FormLayout entity);

    /**
     * 修改
     * @param entity
     * @return
     */
    Result<Void> updateLayout(FormLayout entity);
}
